﻿using System;
using System.Drawing;

namespace MarioMapEditor
{
    class ObAcMario : ObActive
    {
        public enum MARIO { MARIO = 60};

        public ObAcMario(){
            ID      = (int) MARIO.MARIO;
            Info    = (int)INFO.RIGHT;
            Width   = 1;
            Height  = 2;
        }

        public ObAcMario(INFO nInfo)
        {
            ID      = (int)MARIO.MARIO;
            Info    = (int)nInfo;
            Width   = 1;
            Height  = 2;
        }

        public static bool checkType(int objectID)
        {
            if (Enum.IsDefined(typeof(MARIO), objectID))
            {
                return true;
            }
            return false;
        }

        public override Bitmap GetBitmap()
        {
            var src = Properties.Resources.Mario;
            return MainForm.ResizeImage(src, new Size(Width * MainForm.TileSize, Height * MainForm.TileSize));
        }
    }
}
